<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>全文搜索 | 搜索结果</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- zTree -->
    <link rel="stylesheet" href="../plugins/zTree_v3/css/zTreeStyle/zTreeStyle.css">
    <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker-bs3.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect.
    -->
    <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" href="../dist/css/communal.css">

  </head>
  <body class="hold-transition skin-yellow sidebar-mini">
    <div class="wrapper">
      <!-- Main Header -->
      <header class="main-header">
        <!-- Logo -->
        <a href="../index.html" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>舆情</b></span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>舆情监测</b></span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <!-- Navbar Right Menu -->
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
              <!-- Messages: style can be found in dropdown.less-->
              <li class="dropdown messages-menu">
                <!-- Menu toggle button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-envelope-o"></i>
                  <span class="label label-success">4</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">你有4条邮件！</li>
                  <li>
                    <!-- inner menu: contains the messages -->
                    <ul class="menu">
                      <li><!-- start message -->
                        <a href="#">
                          <div class="pull-left">
                            <!-- User Image -->
                            <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                          </div>
                          <!-- Message title and timestamp -->
                          <h4>
                            Support Team
                            <small><i class="fa fa-clock-o"></i> 5 mins</small>
                          </h4>
                          <!-- The message -->
                          <p>Why not buy a new awesome theme?</p>
                        </a>
                      </li><!-- end message -->
                    </ul><!-- /.menu -->
                  </li>
                  <li class="footer"><a href="#">See All Messages</a></li>
                </ul>
              </li><!-- /.messages-menu -->

              <!-- Notifications Menu -->
              <li class="dropdown notifications-menu">
                <!-- Menu toggle button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-bell-o"></i>
                  <span class="label label-warning">10</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">你有10条通知！</li>
                  <li>
                    <!-- Inner Menu: contains the notifications -->
                    <ul class="menu">
                      <li><!-- start notification -->
                        <a href="#">
                          <i class="fa fa-users text-aqua"></i> 5 new members joined today
                        </a>
                      </li><!-- end notification -->
                    </ul>
                  </li>
                  <li class="footer"><a href="#">View all</a></li>
                </ul>
              </li>
              <!-- Tasks Menu -->
              <li class="dropdown tasks-menu">
                <!-- Menu Toggle Button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-flag-o"></i>
                  <span class="label label-danger">9</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">你还有9个任务待完成！</li>
                  <li>
                    <!-- Inner menu: contains the tasks -->
                    <ul class="menu">
                      <li><!-- Task item -->
                        <a href="#">
                          <!-- Task title and progress text -->
                          <h3>
                            Design some buttons
                            <small class="pull-right">20%</small>
                          </h3>
                          <!-- The progress bar -->
                          <div class="progress xs">
                            <!-- Change the css width attribute to simulate progress -->
                            <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                              <span class="sr-only">20% Complete</span>
                            </div>
                          </div>
                        </a>
                      </li><!-- end task item -->
                    </ul>
                  </li>
                  <li class="footer">
                    <a href="#">View all tasks</a>
                  </li>
                </ul>
              </li>
              <!-- User Account Menu -->
              <li class="dropdown user user-menu">
                <!-- Menu Toggle Button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <!-- The user image in the navbar-->
                  <img src="../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                  <!-- hidden-xs hides the username on small devices so only the image appears. -->
                  <span class="hidden-xs">账户管理</span>
                </a>
                <ul class="dropdown-menu">
                  <!-- The user image in the menu -->
                  <li class="user-header">
                    <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                    <p>
                      张先森 - 男
                      <small>WEB 开发工程师</small>
                    </p>
                  </li>
                  <!-- Menu Body -->
                  <li class="user-body">
                    <div class="col-xs-4 text-center">
                      <a href="#">Followers</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="#">Sales</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="#">Friends</a>
                    </div>
                  </li>
                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                      <a href="../profile.html" class="btn btn-default btn-flat">个人中心</a>
                    </div>
                    <div class="pull-right">
                      <a href="#" class="btn btn-default btn-flat">退出账号</a>
                    </div>
                  </li>
                </ul>
              </li>
              <!-- Control Sidebar Toggle Button -->
              <li>
                <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
              </li>
            </ul>
          </div>
        </nav>
      </header>
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">
        <section class="sidebar">
          <div class="user-panel">
            <div class="pull-left image">
              <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
              <p>我的账户</p>
              <a href="#"><i class="fa fa-circle text-success"></i>在线</a>
            </div>
          </div>
          <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
              <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
            </div>
          </form>
          <ul class="sidebar-menu">
            <!-- <li class="header">MAIN NAVIGATION</li> -->
            <li class="treeview">
              <a href="../index.html">
                <i class="fa fa-home"></i> <span>总  览</span>
                <i class="fa fa-angle-left pull-right"></i>
              </a>
            </li>
            <li class="treeview">
              <a href="../index2.html">
                <i class="fa fa-area-chart"></i>
                <span>舆情监测</span>
                <!-- <span class="label label-primary pull-right">4</span> -->
                <i class="fa fa-angle-left pull-right"></i>
              </a>
            </li>
            <li class="treeview">
              <a href="#">
                <i class="fa fa-users"></i>
                <span>用户管理</span>
                <i class="fa fa-angle-left pull-right"></i>
              </a>
              <ul class="treeview-menu">
                <li><a href="../custormer/app-custorm_mg.html"><i class="fa fa-circle-o"></i> app用户管理</a></li>
                <li><a href="../custormer/web-custorm_mg.html"><i class="fa fa-circle-o"></i> web用管理户</a></li>
                <li><a href="../custormer/roles.html"><i class="fa fa-circle-o"></i> 角色管理</a></li>
              </ul>
            </li>
            <li class="active">
              <a href="../fulltext_searching.html">
                <i class="fa fa-search-minus"></i> <span>全文搜素</span>
                <!-- <small class="label pull-right bg-red">3</small> -->
                <i class="fa fa-angle-left pull-right"></i>
              </a>
            </li>
            <li>
              <a href="#">
                <i class="fa fa-android"></i> <span>App管理</span>
                <i class="fa fa-angle-left pull-right"></i>
                <ul class="treeview-menu">
                  <li><a href="../app_management/divisional.html"><i class="fa fa-circle-o"></i> 部门管理</a></li>
                  <li><a href="../app_management/grouping.html"><i class="fa fa-circle-o"></i> 分组管理</a></li>
                </ul>
              </a>
            </li>
            <li class="treeview">
              <a href="#">
                <i class="fa fa-gear"></i>
                <span>系统设置</span>
                <i class="fa fa-angle-left pull-right"></i>
              </a>
              <ul class="treeview-menu">
                <li>
                  <a href="#">
                    <i class="fa fa-calendar-minus-o"></i> 日志管理
                    <i class="fa fa-angle-left pull-right"></i>
                  </a>
                  <ul class="treeview-menu">
                    <li><a href="../system/page/customer_login_logs.html"><i class="fa fa-circle-o"></i> 用户登录日志</a></li>
                    <li><a href="../system/page/app_login_logs.html"><i class="fa fa-circle-o"></i> app用户登录日志</a></li>
                    <li><a href="../system/page/client_push_center.html"><i class="fa fa-circle-o"></i> 客户端push中心日志</a></li>
                    <li><a href="../system/page/client_push_logs.html"><i class="fa fa-circle-o"></i> 客户端推送日志</a></li>
                  </ul>
                </li>
                <li>
                  <a href="#">
                    <i class="fa fa-laptop"></i> 偏好设置
                    <i class="fa fa-angle-left pull-right"></i>
                  </a>
                  <ul class="treeview-menu">
                    <li><a href="../system/page/source_site_setting.html"><i class="fa fa-circle-o"></i> 来源网站设置</a></li>
                    <li><a href="../system/page/morris_conditions_setting.html"><i class="fa fa-circle-o"></i> 默认监测条件</a></li>
                  </ul>
                </li>
                <li><a href="../system/yj_setting.html"><i class="fa fa-circle-o"></i> 预警设置</a></li>
                <li><a href="../system/txl_setting.html"><i class="fa fa-circle-o"></i> 通讯录管理</a></li>
                <li><a href="../system/fsjl_setting.html"><i class="fa fa-circle-o"></i> 发送记录</a></li>
                <li><a href="../system/xzzq_setting.html"><i class="fa fa-circle-o"></i> 新增抓取</a></li>
              </ul>
            </li>
            <li class="treeview">
              <a href="../profile.html">
                <i class="fa fa-user"></i> <span>个人中心</span>
                <i class="fa fa-angle-left pull-right"></i>
              </a>
            </li>
          </ul>
        </section>
        <!-- /.sidebar -->
      </aside>
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- <section class="content-header">
          <h1>搜索结果</h1>
          <ol class="breadcrumb">
            <li><a href="javascript:history.go(-1);"><i class="fa fa-file-text-o"></i>全文搜索</a></li>
            <li class="active">搜索结果</li>
          </ol>
        </section> -->

        <!-- Main content -->
        <section class="content" style="min-height: 100vh;">
          <div class="panel panel-info">
            <div class="panel-heading">
                <div class="text-center" >
                  <form action="" class="form-inline">
                    <div class="form-group">
                      <div class="input-group">
                        <input type="text" class="form-control" style="width: 300px">
                        <span style="color: #fff;cursor: pointer;background-color: #f39c12;border-color: #e08e0b;" class="input-group-addon">搜索</span>
                      </div>
                    </div>
                    <div class="form-group" style="margin: 0 10px;">
                     <label class="radio-inline">
                        <input type="radio" name="aaa" checked id="">
                        模糊查询
                     </label>
                     <label class="radio-inline">
                        <input type="radio" name="aaa" checked id="">
                        精确查询
                     </label>
                    </div>
                  </form>
                </div>
            </div>
            <div class="panel-body">
              <div class="contanier morris-conditions">
                  <div class="row">
                    <div class="col-sm-6">
                      <dl class="clearfix">
                        <dt class="pull-left">时间范围：</dt>
                        <dd class="pull-left">今日</dd>
                        <dd class="pull-left active">24小时</dd>
                        <dd class="pull-left">2天</dd>
                        <dd class="pull-left">3天</dd>
                        <dd class="pull-left">7天</dd>
                        <dd class="pull-left">10天</dd>
                      </dl>
                    </div>
                    <div class="col-sm-6">
                      <dl class="clearfix">
                        <dt class="pull-left">
                          相似文章：
                        </dt>
                        <dd class="pull-left">不合并</dd>
                        <dd class="pull-left active">
                          合并
                          <span>
                            <i data-toggle="tooltip" title="30天以上数据暂时不支持信息合并" class="fa fa-question-circle"></i>
                          </span>
                        </dd>
                      </dl>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-sm-6">
                      <dl class="clearfix">
                        <dt class="pull-left">文章排序：</dt>
                        <dd class="pull-left">相似度</dd>
                        <dd class="pull-left active">时间降序</dd>
                        <dd class="pull-left">时间升序</dd>
                        <dd class="pull-left">相同数</dd>
                        <dd class="pull-left">采集排序</dd>
                      </dl>
                    </div>
                    <div class="col-sm-6">
                        <dl class="clearfix">
                          <dt class="pull-left">敏感属性：</dt>
                          <dd class="pull-left">全部</dd>
                          <dd class="pull-left active">敏感</dd>
                          <dd class="pull-left">非敏感</dd>
                        </dl>
                    </div>
                  </div>
                  <div class="row" id="filtrate_condition">
                    <div class="col-sm-6">
                      <dl class="clearfix">
                        <dt class="pull-left">
                          来源网站：
                        </dt>
                        <dd class="pull-left active">全部</dd>
                        <dd class="pull-left">省内</dd>
                        <dd class="pull-left">省外</dd>
                        <dd class="pull-left">贴吧</dd>
                      </dl>
                    </div>
                    <div class="col-sm-6">
                      <dl class="clearfix">
                        <dt class="pull-left">转发微博：</dt>
                        <dd class="pull-left active">显示</dd>
                        <dd class="pull-left">
                          不显示
                          <span>
                            <i data-toggle="tooltip" title="根微博只对新浪微博生效" class="fa fa-question-circle"></i>
                          </span>
                        </dd>
                      </dl>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-sm-6" style="width: 100%;">
                      <dl class="clearfix">
                        <dt class="pull-left">来源类型：</dt>
                        <dd class="pull-left active">全部</dd>
                        <dd class="pull-left">网站</dd>
                        <dd class="pull-left">论坛</dd>
                        <dd class="pull-left">微博</dd>
                        <dd class="pull-left">博客</dd>
                        <dd class="pull-left">外媒</dd>
                        <dd class="pull-left">微信</dd>
                        <dd class="pull-left">新闻</dd>
                        <dd class="pull-left">政务</dd>
                        <dd class="pull-left">报刊</dd>
                        <dd class="pull-left">视频</dd>
                        <dd class="pull-left">客户端</dd>
                      </dl>
                    </div>
                  </div>
                  <div class="row">
                      <div class="col-sm-12 text-center clearfix" style="line-height: 100px;">
                        <button type="button" class="btn btn-success" style="padding: 7px 50px;border-radius: 0;margin-right: 15px;">查询</button>
                        <button type="button" class="btn btn-default" style="padding: 7px 50px;border-radius: 0;">保存</button>

                        <div id="filtrate_btn" class="text-yellow pull-right" style="line-height: 20px;;margin: 40px 20px 0 0;cursor: pointer;">
                          基础筛选
                          <i class="fa fa-angle-double-up"></i>
                        </div>
                      </div>
                  </div>
              </div>
            </div>
            <div class="table-responsive">
              <table class="table table-hover table-bordered">
                <thead>
                  <tr style="background-color: #eee;">
                    <th class="text-center">标题</th>
                    <th class="text-center" style="width: 100px">相似文章</th>
                    <th class="text-center"  style="width: 100px">来源</th>
                    <th class="text-center"  style="width: 200px">时间</th>
                  </tr>
                  <tr>
                    <td colspan="4">
                      <div class="row" style="padding: 0;margin: 0;">
                        <div class="col-xs-6 text-center">
                          <div class="pull-right">
                            <span class="btn btn-default btn-sm">
                              <i class="fa fa-angle-left"></i>
                            </span>
                            <span class="text-yellow">1</span> / 1
                            <span class="btn btn-default btn-sm">
                              <i class="fa fa-angle-right"></i>
                            </span>
                          </div>
                        </div>
                        <div class="col-xs-6 text-center">
                          <form action="" class="form-inline">
                            <div class="form-group">
                              <input type="text" class="form-control" placeholder="在结果中搜索，支持单个词组" style="width: 300px">
                            </div>
                            <div class="form-group">
                              <button type="button" class="btn btn-success btn-sm">搜索</button>
                            </div>
                          </form>
                        </div>
                      </div>
                    </td>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <!-- <td>
                      <h3>雨过添情会幸福55555</h3>
                      <div class="cont">
                        //@公益大使20171012://【2万只到30万只，向藏羚羊守卫者致敬！[赞]】藏羚羊，又称“雪域精灵”，却惨遭盗猎者的疯狂杀戮。#正大综艺动物来啦#曝光的一段藏羚羊迁徙影像中，一只母羊为救小羊掉落山崖[伤心]正是像刘宇军一样的“高原
                      </div>
                    </td> -->
                    <td>
                      <ul class="ul-head">
                        <li>
                          <div class="div-img">
                            <img src="../dist/img/avatar.png" alt="">
                          </div>
                          <a href="#">遗失路上D时光</a>
                        </li>
                        <li>
                          <p>【
                            <span class="span-a">焦作</span>青天河】焦作青天河位于
                            <span class="span-a">河南</span>省
                            <span class="span-a">焦作</span>市西北部博爱县境内，系世界地质公园、国家重点风景名胜区、国家AAAAA级
                            <span class="span-a">旅游</span>区、国家水利风
                            <span class="span-a">景区</span>、太行山国家级猕猴自然保护区、中国青少年科学考察探险基地、
                            <span class="span-a">河南</span>省最具魅力的十佳风景名胜区、
                            <span class="span-a">河南</span>省十大旅游热点景区。</p>
                        </li>
                        <li>
                          <p>涉及词：
                            <span class="span-a">旅游,洛阳</span>
                          </p>
                          <div class="text-left left-t">
                            <!-- Split button -->
                            <div class="btn-group pull-right">
                              <button type="button" class="btn btn-defaul" data-toggle="modal" data-target="#myModal7" title="加入收藏夹" aria-label="Left Align">
                                <span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
                              </button>
                              <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal8" title="加入简报素材" aria-label="Left Align">
                                <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
                              </button>
                              <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal9" title="短信发送舆情" aria-label="Left Align">
                                <span class="glyphicon glyphicon-comment" aria-hidden="true"></span>
                              </button>
                              <button type="button" class="btn btn-default"  title="查看原文" aria-label="Left Align">
                                <a target="_blank" style="float: initial;color: #444;" class="glyphicon glyphicon-paperclip" aria-hidden="true" href="http://image.baidu.com">
                                </a>
                              </button>
                              <button type="button" class="btn btn-default"data-toggle="modal" data-target="#distribute_original"  title="分发原文" aria-label="Left Align">
                                <span class="glyphicon glyphicon-compressed" aria-hidden="true"></span>
                                <i class="fa fa-caret-down"></i>
                              </button>
                            </div>
                        </li>
                      </ul>
                    </td>
                    <td>
                      1
                    </td>
                    <td>
                        <span class="text-blue">新浪微博</span>
                    </td>
                    <td>
                      <span>今天 09:51</span>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="panel-footer clearfix">
                <ul class="pagination pull-right">
                  <li class="disabled">
                    <a href="#">首页</a>
                  </li>
                  <li class="disabled">
                      <a href="#">上一页</a>
                    </li>
                  <li class="active">
                    <a href="#">1</a>
                  </li>
                  <li>
                    <a href="#">2</a>
                  </li>
                  <li>
                    <a href="#">下一页</a>
                  </li>
                </ul>
            </div>
          </div>
        </section>
      </div>
      <!-- 加入收藏夹 -->
      <div class="modal fade" id="myModal7" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
              <h4 class="modal-title" id="myModalLabel7">素材操作</h4>
            </div>
            <div class="modal-body">已成功收藏1条素材</div>
            <div class="modal-footer">
              <button type="button" class="btn btn-success" data-dismiss="modal">确定</button>
            </div>
          </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal -->
      </div>
      <!--加入简报素材  -->
      <div class="modal fade" id="myModal8" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
              <h4 class="modal-title" id="myModalLabel8">素材操作</h4>
            </div>
            <div class="modal-body">已成功添加1条素材</div>
            <div class="modal-footer">
              <button type="button" class="btn btn-success" data-dismiss="modal">确定</button>
            </div>
          </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal -->
      </div>
      <!-- 短信发送舆情 -->
      <div class="modal fade" id="myModal9" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
              <h4 class="modal-title" id="myModalLabel9">联系人来自通讯录</h4>
            </div>
            <div class="modal-body">
              <table class="table table-bordered">
                <thead>
                  <tr>
                    <th>姓名</th>
                    <th>邮箱</th>
                    <th>手机</th>
                    <th>微信</th>
                    <th>状态</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td>
                      <input type="checkbox">
                      <lable>张三</lable>
                    </td>
                    <td>123@q1.con</td>
                    <td>15862374549</td>
                    <td></td>
                    <td class="chage">修改</td>
                  </tr>
                </tbody>
              </table>
              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">手机号码</label>
                <div class="col-sm-10">
                  <input type="email" class="form-control" id="inputEmail3" placeholder="手机号码">
                </div>
              </div>
              <p class="pp">直接填写手机号！多个号码请用','分割，如13511112222，13533336666</p>
              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">推送内容</label>
                <div class="col-sm-10">
                  <input type="email" class="form-control" id="inputEmail4" disabled placeholder=" 新增关注信息，请您点击阅读:http://yq.wxtyq.com/wap/otmsxb25">
                </div>
              </div>
            </div>
            <div class="modal-footer" style="margin-top: 10px;">
              <button type="button" class="btn btn-warning">
                确定
              </button>
              <button type="button" class="btn btn-default" data-dismiss="modal">
                取消
              </button>
              <button type="button" data-toggle="modal" data-target="#addNewCustorm" class="btn btn-success">
                添加新用户
              </button>
            </div>
          </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
      </div>
      <!-- 分发原文 -->
      <div class="modal fade" id="distribute_original" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button name="closeModalBtn" type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
              <h4 class="modal-title" id="myModalLabel10">内容分发</h4>
            </div>
            <div class="modal-body">
              <div id="select_box" class="text-left" style="min-height: 300px;">
                <div class="row">
                  <div class="col-sm-5" style="">
                    <div style="min-height: 300px;border: 1px solid #bfbfbf;overflow-y: scroll;">
                      <ul id="treeDemo" class="ztree"></ul>
                    </div>
                  </div>
                  <div class="col-sm-2" style="position: relative;min-height: 300px;">
                      <div style="position:absolute;top: 50%;left: 50%;margin-top: -40px;margin-left: -34px;line-height: 40px;">
                          <button id="add" type="button" class="btn btn-warning">增加&gt;</button>
                          <button id="del" type="button" class="btn btn-default">&lt;删除</button>
                      </div>
                  </div>
                  <div class="col-sm-5" style="">
                      <div style="min-height: 300px;border: 1px solid #bfbfbf;overflow-y: scroll;">
                        <ul id="treeCont" class="ztree"></ul>
                      </div>
                    </div>
                </div>
              </div>
            </div>
            <div class="modal-footer" style="margin-top: 10px;">
              <button type="button" class="btn btn-warning">
                分发
              </button>
              <button name="closeModalBtn" type="button" class="btn btn-default" data-dismiss="modal">
                关闭
              </button>
            </div>
          </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
      </div>
      <!-- /.modal -->
      <!-- 添加新联系人 -->
      <div id="addNewCustorm" class="modal fade" style="display: none;">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header" style="top: -52px;">
                <a class="close" data-dismiss="modal">×</a>
                <h4 class="modal-title">新增通讯记录</h4>
            </div>
            <div class="modal-body">
              <form class="form-horizontal">
                <div class="form-group">
                  <label for="inputEmail38" class="col-sm-2 control-label">姓名</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputEmai38" placeholder="请输入姓名">
                  </div>
                </div>
                <div class="form-group">
                  <label for="inputEmai39" class="col-sm-2 control-label">Email</label>
                  <div class="col-sm-10">
                    <input type="email" class="form-control" id="inputEmai39" placeholder="请输入邮箱">
                  </div>
                </div>
                <div class="form-group">
                  <label for="inputEmai40" class="col-sm-2 control-label">手机号码</label>
                  <div class="col-sm-10">
                    <input type="number" class="form-control" id="inputEmai40" placeholder="请输入手机号码">
                  </div>
                </div>
                            <div class="form-group">
                  <label for="inputEmail41" class="col-sm-2 control-label">微信号</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputEmai41" placeholder="请输入微信号">
                  </div>
                </div>
                <div class="form-group">
                  <label for="inputEmail42" class="col-sm-2 control-label">单位名称</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputEmai42" placeholder="请输入单位名称">
                  </div>
                </div>
                <div class="form-group">
                  <label for="inputEmail43" class="col-sm-2 control-label">备注信息</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputEmai43" placeholder="请输入备注信息">
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10 text-center">
                    <button type="submit" class="btn btn-warning">提交</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                  </div>
                </div>
              </form>
           </div>
          </div>
        </div>
      </div> <!-- /. 添加新联系人 -->




      <!-- Main Footer -->
      <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
          Anything you want
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2015 <a href="#">Company</a>.</strong> All rights reserved.
      </footer>

      <!-- Control Sidebar -->
      <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
          <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
          <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
          <!-- Home tab content -->
          <div class="tab-pane active" id="control-sidebar-home-tab">
            <h3 class="control-sidebar-heading">Recent Activity</h3>
            <ul class="control-sidebar-menu">
              <li>
                <a href="javascript::;">
                  <i class="menu-icon fa fa-birthday-cake bg-red"></i>
                  <div class="menu-info">
                    <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
                    <p>Will be 23 on April 24th</p>
                  </div>
                </a>
              </li>
            </ul><!-- /.control-sidebar-menu -->

            <h3 class="control-sidebar-heading">Tasks Progress</h3>
            <ul class="control-sidebar-menu">
              <li>
                <a href="javascript::;">
                  <h4 class="control-sidebar-subheading">
                    Custom Template Design
                    <span class="label label-danger pull-right">70%</span>
                  </h4>
                  <div class="progress progress-xxs">
                    <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                  </div>
                </a>
              </li>
            </ul><!-- /.control-sidebar-menu -->

          </div><!-- /.tab-pane -->
          <!-- Stats tab content -->
          <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div><!-- /.tab-pane -->
          <!-- Settings tab content -->
          <div class="tab-pane" id="control-sidebar-settings-tab">
            <form method="post">
              <h3 class="control-sidebar-heading">General Settings</h3>
              <div class="form-group">
                <label class="control-sidebar-subheading">
                  Report panel usage
                  <input type="checkbox" class="pull-right" checked>
                </label>
                <p>
                  Some information about this general settings option
                </p>
              </div><!-- /.form-group -->
            </form>
          </div><!-- /.tab-pane -->
        </div>
      </aside><!-- /.control-sidebar -->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class="control-sidebar-bg"></div>
    </div><!-- ./wrapper -->
    <!-- REQUIRED JS SCRIPTS -->

    <!-- jQuery 2.1.4 -->
    <script src="../plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- Bootstrap 3.3.5 -->
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../plugins/zTree_v3/js/jquery.ztree.core.min.js"></script>
    <script type="text/javascript" src="../plugins/zTree_v3/js/jquery.ztree.all.min.js"></script>
    <script type="text/javascript" .src="../plugins/zTree_v3/js/jquery.ztree.excheck.min.js"></script>
    <!-- AdminLTE App -->
    <script src="../dist/js/app.min.js"></script>
    <script type="text/javascript">
    // 条件筛选
      $('dl.clearfix dd').on('click', function(){
        $(this).parents('dl').find('dd').removeClass('active');
        $(this).addClass('active');
      })
    // 过滤条件筛选 -- 按钮
    var isToggle = true;
    $('#filtrate_btn').on('click', function(){

      $('#filtrate_condition').slideToggle('1000');
      if(isToggle){
        $('#filtrate_btn').find('.fa').removeClass('fa-angle-double-up').addClass('fa-angle-double-down');

      }else{
        $('#filtrate_btn').find('.fa').removeClass('fa-angle-double-down').addClass('fa-angle-double-up');

      }
      isToggle = !isToggle;
    })


    // 分配组权限
    $(function () {
      $(document).ready(function(){
        var setting = {
          view: {
            dblClickExpand: false
          },
          check: {
            enable: true
          },
          callback: {
            onCheck:onCheck
          }
        };
        var setting_r = {
          view: {
            dblClickExpand: false
          },
          callback: {
            onClick:onClick
          }
        };
        var zNodes =[{
            id:1, 
            name:"全部", 
            pId:0,
            open:true, 
            noR:true,
            children:[
              {
                id:11, 
                pId: 1,
                name:"北京", 
                noR:true,
                children: [
                  {
                    id:111, 
                    pId: 11,
                    name:"网站", 
                    noR:true
                  },{
                    id:112, 
                    pId: 11,
                    name:"报刊", 
                    noR:true
                  },{
                    id:113, 
                    pId: 11,
                    name:"论坛", 
                    noR:true
                  },{
                    id:114, 
                    pId: 11,
                    name:"博客", 
                    noR:true
                  },{
                    id:115, 
                    pId: 11,
                    name:"贴吧", 
                    noR:true
                  }
                ]
              },{
                id:12, 
                name:"天津",
                pId: 1,
                noR:true,
                children: [
                  {
                    id:121, 
                    pId: 12,
                    name:"网站", 
                    noR:true
                  },{
                    id:123, 
                    pId: 12,
                    name:"报刊", 
                    noR:true
                  },{
                    id:124, 
                    pId: 12,
                    name:"论坛", 
                    noR:true
                  }
                ]
              }
            ]}
          ];

        var rightZNodes = [];
        var deletedNodes = [], filtrateNodes = [];
        function onCheck(e,treeId,treeNode){
          var treeObj=$.fn.zTree.getZTreeObj("treeDemo"), nodes=treeObj.getCheckedNodes(true), v="";

          rightZNodes = nodes;
          deletedNodes = nodes;
          $('#LEN').html(nodes.length);
        }
        // 左侧树形结构  -- init()
        $.fn.zTree.init($("#treeDemo"), setting, zNodes);

        // 删除
        function onClick(event, treeId, treeNode){
          // 要删除的数据
          console.log(deletedNodes)
          var result = [];

          deletedNodes.forEach(function(element){
            if(element.id !== treeNode.id){
              result.push(element)
            }
          })
          filtrateNodes = result;
        };

        // 处理已选中的数据
        function findChildren(list, pid) {
          var arrs = [];
          var k = 0;
          for(var i = 0; i < list.length; i++) {
            if (list[i].pId == pid) {
              list[i].children = findChildren(list, list[i].id);
              arrs[k] = list[i];
              ++k;
            }
          }
          return arrs.length == 0 ? null : arrs;
        }
        // 增加
        $('#add').on('click', function(){
          var result = null;
          for(var i = 0; i < rightZNodes.length; i++) {
            var pid = rightZNodes[i].pId;
            if (pid == 0) {
              result = rightZNodes[i];  // 父级
              result.children = findChildren(rightZNodes, rightZNodes[i].id);

              $.fn.zTree.init($("#treeDemo"), setting, zNodes);
              break;
            }
          }
          // console.log(result);
          $.fn.zTree.init($("#treeCont"), setting_r, result);
          rightZNodes = [];
        })
        
        // 删除
        $('#del').click(function(){
          toDelete();
          deletedNodes = filtrateNodes;
        })
        function toDelete(){
          var result = null;
          for(var i = 0; i < filtrateNodes.length; i++) {
            var pid = filtrateNodes[i].pId;
            if (pid == 0) {
              result = filtrateNodes[i];  // 父级
              result.children = findChildren(filtrateNodes, filtrateNodes[i].id);

              $.fn.zTree.init($("#treeCont"), setting_r, result);
              break;
            }
          }

          $.fn.zTree.init($("#treeCont"), setting_r, result);
        }
        // 清空右侧树形菜单
        $('[name=closeModalBtn]').click(function(event) {
          $('#treeCont').empty();
        });
      })
    })
    </script>
  </body>
</html>
